package com.gloaba.common.core.exception;


/**
 * IP访问限制异常异常
 *
 * @author Zane
 */
public class AccessIpLimitException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Integer code;

    private String message;

    private Object data;

    public AccessIpLimitException(String message) {
        this.message = message;
    }

    public AccessIpLimitException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public AccessIpLimitException(String message, Integer code, Object data) {
        this.message = message;
        this.code = code;
        this.data = data;
    }

    public AccessIpLimitException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

    public Object getData() {
        return data;
    }
}
